import cn.geminis.devops.jenkins.BuildGradle
import cn.geminis.devops.jenkins.BuildMaven
import cn.geminis.devops.jenkins.BuildYarn
import cn.geminis.devops.jenkins.BuildPnpm

def call() {
    def build;
    switch (env.BUILD_TOOL) {
        case 'yarn':
            build = new BuildYarn();
            break;
        case 'pnpm':
            build = new BuildPnpm();
            break;
        case 'maven':
            build = new BuildMaven();
            break;
        case 'gradle':
            build = new BuildGradle();
            break;
    }
    return build;
}